import http from '@/utils/http/axios';

/**
 * 获取部门tree
 */
export function getDeptTreeData() {
  return http.request({
    url: '/sys/dept/getDeptTreeData',
    method: 'get',
  });
}
export function saveDept(data) {
  return http.request({
    url: '/sys/dept',
    method: 'post',
    data,
  });
}
export function updateDept(data) {
  return http.request({
    url: '/sys/dept',
    method: 'put',
    data,
  });
}
export function deleteDept(ids) {
  return http.request({
    url: '/sys/dept',
    method: 'delete',
    params: { ids: ids },
  });
}
